/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */
export const houseVisualColumns = [
  { type: 'index', label: '序号', width: 60, align: 'center' },
  {
    prop: 'houseName',
    label: '名称',
    minWidth: 60,
    align: 'center',
    formatter: function (row: any, column: any, cellValue: string) {
      return cellValue || '-'
    }
  },
  {
    prop: 'houseType',
    label: '类型',
    minWidth: 60,
    align: 'center',
    formatter: function (row: any, column: any, cellValue: string) {
      return cellValue || '-'
    }
  },
  {
    prop: 'houseCode',
    label: '编号',
    sortable: 'custom',
    minWidth: 60,
    align: 'center',
    formatter: function (row: any, column: any, cellValue: string) {
      return cellValue || '-'
    }
  },
  {
    prop: 'region',
    label: '所在区域',
    minWidth: 60,
    align: 'center',
    formatter: function (row: any, column: any, cellValue: string) {
      return cellValue || '-'
    }
  },
  {
    prop: 'state',
    label: '状态',
    minWidth: 60,
    sortable: 'custom',
    align: 'center',
    formatter: function (row: any, column: any, cellValue: string) {
      return cellValue === '1' ? '使用中' : '已废弃'
    }
  }
]
